package com.woniu.customer.service;

import com.woniu.common.dto.LoginDto;
import com.woniu.common.entity.AdmCustomer;
import com.woniu.common.entity.AdmEmployee;
import com.woniu.common.entity.Result;

import javax.servlet.http.HttpServletResponse;

public interface LoginService {
    //  用户登录
    public Result login(LoginDto loginDto, HttpServletResponse response);
    //  根据工号查询员工信息
    public AdmCustomer getCustomerByEmail(String email);
    //  根据jwt获取用户信息
    public AdmCustomer getJwtTokenInfo(String email);
    //  向邮箱发送验证码
    public Result sendEmail(String email,String code);
    //  添加客户
    void addCustomer(AdmCustomer admCustomer);
    //  根据id查询客户
    AdmCustomer getCustomerById(int email);
}
